########################  1 ##################
#cmake_minimum_required (VERSION 2.8)
#
#project (demo)
#
#add_executable(main main.c)

cmake_minimum_required(VERSION 2.8.9)
project(directory_test)
set(CMAKE_BUILD_TYPE Release)
set ( PROJECT_LINK_LIBS libtestage.so )
link_directories(/home/yeyotow/cmake/lib )

#Bring the headers, such as Student.h into the project
include_directories(include)

#Can manually add the sources using the set command as follows:
#set(SOURCES src/mainapp.cpp src/Student.cpp)

#However, the file(GLOB...) allows for wildcard additions:
file(GLOB SOURCES "src/*.c")

add_executable(testmain ${SOURCES})
target_link_libraries(testmain ${PROJECT_LINK_LIBS} )
